package JavaBase.Polymorphism;

public class Plus extends Calculator{

    public Plus(double number1,double number2)
    {
        super(number1,number2);
    }
    public void count()
    {
       System.out.println(this.getNumber1()+"+"+this.getNumber2()+"="
               +(this.getNumber1()+this.getNumber2()));
    }
}
